home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
basic
/
qbware.exe
/
TICKS.FN
< prev
next >
Wrap
Text File
|
1988-05-01
|
489b
|
25 lines
'Copyright (c) 1987,1988 Marcel Madonna
'*****************************************************************************
DEF FnTicks (A%, b%, C%)
'
' This function takes the output from BSGETIME and computes the total number
' of clock ticks that have passed since the computer started.
STATIC ClTicks
ClTicks = (A% * 65536) + (C% * 1573040)
IF b% > 0 THEN
ClTicks = ClTicks + b%
ELSE
ClTicks = ClTicks + b% + 65536
END IF
FnTicks = ClTicks
END DEF